package city;

import java.util.*;

public class Test {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("江北区");
        list.add("北碚");
        list.add("沙坪坝");
        list.add("渝中区");
        list.add("南岸区");
        list.add("大渡口区");
        Map<String,List> map=new HashMap<>();
        map.put("重庆",list);
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入省");
        String s=sc.next();
        System.out.println(map.get(s).toString());
        System.out.println("请输入城市");
        String s2=sc.next();
        if (list.contains(s2)){
            System.out.println(map.keySet());
        }
    }
}
